home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / lang / f2c_amiga1.lha / f2c-1993.04.28amiga / libF77 / c_sin.c < prev    next >
C/C++ Source or Header  |  1993-04-28  |  258b  |  17 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. extern double sin(), cos(), sinh(), cosh();
  5.  
  6. VOID c_sin(r, z) complex *r, *z;
  7. #else
  8. #undef abs
  9. #include "math.h"
  10.  
  11. void c_sin(complex *r, complex *z)
  12. #endif
  13. {
  14. r->r = sin(z->r) * cosh(z->i);
  15. r->i = cos(z->r) * sinh(z->i);
  16. }
  17.